<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <title>在线充值—{$config["sitename"]|default=''}</title>
    <link rel="stylesheet" href="__ADDON__/css/member_v2.css?v={:config('app_version')}">
    <!--主体内容从上到上样式-->
    <link rel="stylesheet" href="__ADDON__/css/aniamte.css">
</head>

<body>
{include file="common/top" /}
<!-- 侧边栏 end -->

<!-- 主内容 -->
<div class="main">
    <div class="wrapper">
        <!--面包屑-->
        <div class="m-top">
            <ul class="breadcrumb">
                <li><a href="{:addon_url('media/member/index')}">首页</a><span class="gt">&gt;</span><a href="{:addon_url('media/member/pay')}">在线充值</a><span class="gt">&gt;</span></li>
                <li>充值记录</li>
            </ul>
        </div>
        <!--面包屑 end-->

        <div class="container fadeInUp">
            <div class="box">
                <div class="tabs" id="tabs">
                    <ul class="tabs-title">
                        <li><a href="{:addon_url('media/member/pay')}">在线充值</a></li>
                        <li class="active"><a href="{:addon_url('media/member/payhistory')}">充值记录</a></li>
                        <!--<li><a href="{:addon_url('media/member/purchase')}">其他消费</a></li>-->
                    </ul>
                    <!--充值记录-->
                    <div class="box-container introduce">


                        <div class="table" style="float: right">
                            <form id="form1" name="form1" method="get" action="">
                                <table width="305px">
                                    <tbody>
                                    <tr>
                                        <td class="right;" style="width:230px;">
                                            <select name="type" id="type" style="float:left;width:100%;">
                                                <option value="">所有类型</option>
                                                <option value="1">支付宝支付</option>
                                                <option value="2">微信支付</option>
                                                <option value="3">人工充值</option>
                                                <option value="4">订单退款</option>
                                                <option value="6">充值赠送</option>
                                            </select>
                                        </td>
                                        <td class="left;" style="width:75px;">
                                        <span class="menu" style="float: left;">
                                            <input type="submit" class="menu-blue" value="搜索" style="border-radius: 4px;color: #fff;font-size: 16px;height:39px;line-height: 39px;margin:-2px 0 0 10px;padding: 0 15px;"/>
                                        </span>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                        <div class="table">
                            <table style="width: 100%;">
                                <thead>
                                <tr class="f5f5f5">
                                    <th style="width: 5%;">ID</th>
                                    <th style="width: 20%;">订单</th>
                                    <th style="width: 10%;">交易类型</th>
                                    <th style="width: 10%;">交易状态</th>
                                    <th style="width: 10%;">交易金额</th>
                                    <th style="width: 15%;">交易时间</th>
                                    <th class="left" style="width: 30%;">备注</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="data_list" id="val"}
                                <tr {$key % 2 == 0 ? "class='f8f8f8'":""}>
                                <td>{$val["id"]}</td>
                                <td>{$val["paysn"]}</td>
                                <td>{:config("pay_type")[$val["type"]]}</td>
                                <td>{:config("pay_status")[$val["status"]]}</td>
                                <td>{$val["money"]}</td>
                                <td>{$val["create_time"]}</td>
                                <td class="left" style="width: 30%;">{$val["data"]}</td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                        <!-- 分页 -->
                        <div class="page-box">
                            <div class="total">
                                共 <strong>{$data_list->total()}</strong> 条 <font color="red">{$data_list->currentPage()}</font>/{$data_list->lastPage()} 每页 <strong>{$data_list->listRows()}</strong> 条
                            </div>
                            <div class="page">
                                {$data_list->render()}
                            </div>
                        </div>
                        <!-- 分页 end-->
                    </div>
                    <!--充值记录 end-->
                </div>

            </div>

        </div>
    </div>
</div>
<script type="text/javascript">
    var menu="user";
    var submenu="pay"

    $().ready(function () {
        var t='{$Request.param.type}';
        if(t!=""){
            $("#type").val(t);
        }
    })
</script>
<!-- 主内容 end -->

<!-- 底部 -->
{include file="common/bottom" /}
</body>
</html>